@extends("main")
@section("title")
	Đăng nhập
@endsection
@section("content")
	@if(Session::has("register_success"))
		{{Session::get("register_success")}}
		<?php Session::forget("register_success")?>
	@endif
	<form action="{{Asset('login')}}" method="post" style="width:300px; margin:auto" id="form-register" >
		<h2>Đăng nhập</h2>
		<input type="text" name="user_input" placeholder="Username" id="user_input" class="form-control" style="margin-bottom:10px;">		
		<input type="password" name="password" placeholder="Passwords" id="password" class="form-control" style="margin-bottom::;px;">	
		@if(isset($error_message))
		<label class="error">{{$error_message}}</label>
		@endif
		<button class="btn btn-lg btn-primary btn-block">Đăng nhập</button>
	</form>

@endsection
